package net.hn.hnms.biz.wms.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 供应商账户流水对象 wms_supplier_transaction
 *
 * @author zcc
 */
@ApiModel(description = "供应商账户流水对象")
@Data
@TableName("wms_supplier_transaction")
public class SupplierTransaction {
    public static String ENTER = "11";
    public static String EXIT = "22";
    public static String RECEIPT = "33";
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("交易编号")
    @ExcelProperty(value = "交易编号")
    private String transactionCode;

    @ApiModelProperty("供应商编号")
    @ExcelProperty(value = "供应商编号")
    private String supplierId;

    @ApiModelProperty("交易类型  1：结款  2：应付 ")
    @ExcelProperty(value = "交易类型  1：结款  2：应付 ")
    private String transactionType;

    @ApiModelProperty("交易金额")
    @ExcelProperty(value = "交易金额")
    private BigDecimal transactionAmount;

    @ApiModelProperty("上期余额")
    @ExcelProperty(value = "上期余额")
    private BigDecimal previousBalance;

    @ApiModelProperty("当前余额")
    @ExcelProperty(value = "当前余额")
    private BigDecimal currentBalance;

    @ApiModelProperty("入库单号")
    @ExcelProperty(value = "入库单号")
    private int receiptOrderId;

    @ApiModelProperty("备注")
    @ExcelProperty(value = "备注")
    private String remark;

    @ApiModelProperty("删除标志")
    private Integer delFlag;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

}
